import java.math.BigDecimal;

/**
 * @Author: 贺坤
 * @Date: 2021/5/20 10:08
 */
public class Count {
    private Integer count;
    private Integer txtFilesCount;

    public Count(Integer count) {
        this.count = count;
    }

    public Integer getCount() {
        return count;
    }
    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getTxtFilesCount() {
        return txtFilesCount;
    }

    public void setTxtFilesCount(Integer txtFilesCount) {
        this.txtFilesCount = txtFilesCount;
    }

    public void add() {
        setCount(getCount() + 1) ;
    }

    public StringBuilder getProgress() {
        add();
        StringBuilder stringBuilder = new StringBuilder("(");
        stringBuilder.append(getCount());
        stringBuilder.append("/");
        stringBuilder.append(getTxtFilesCount());
        stringBuilder.append(")");


        return stringBuilder;
    }
}
